<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Document</title>
    <link rel="stylesheet" href="/static/sign/layui/css/layui.css">
    <script src="/static/sign/js/jquery.js"></script>
    <script src="/static/sign/js/layer.js"></script>
    <script src="/static/sign/layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">签到小程序后台管理系统</div>

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" id="navname"></li>
            <li class="layui-nav-item"><a onclick="updToggle()" href="javascript:;">修改密码</a></li>
            <li class="layui-nav-item"><a onclick="quit()" href="javascript:;">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item"><a href="{:url('admin/user/index')}" target="myframe">教师管理</a></li>
                <li class="layui-nav-item"><a href="{:url('admin/suser/index')}" target="myframe">学生管理</a></li>
                <li class="layui-nav-item"><a href="{:url('admin/classesshow/index')}" target="myframe">班级管理</a></li>
                <li class="layui-nav-item"><a href="{:url('admin/courseshow/index')}" target="myframe">课程管理</a></li>
                <li class="layui-nav-item"><a href="{:url('admin/signshow/index')}" target="myframe">签到管理</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;width: 100%;height: 100%">
            <iframe src="{:url('admin/index/content')}" name="myframe" frameborder="0" class="layadmin-iframe" width="100%" height="100%"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        @ alray.
    </div>
</div>
<!--修改密码 id与下面js id相同并且重合-->
<div style='display:none;width:460px;height:211px;z-index:1000;position: fixed;top: 50%;left: 50%;background-color: #fff; box-shadow: 2px 0px 20px 0px;margin-top: -146px;margin-left: -250px;' id='update'>
    <div class="layui-layer-title">修改密码</div>
    <span class="layui-layer-setwin"><a class="layui-layer-ico layui-layer-close layui-layer-close1" href="javascript:;" onclick='updToggle()'></a></span>
    <div style='padding-right: 10px;padding-top: 10px'>
        <div class='layui-form-item'>
            <label class='layui-form-label'><span style='color:red'>*</span>密码</label>
            <div class='layui-input-block'>
                <input type='password' lay-verify='title' autocomplete='off' placeholder='不超过20位'
                       class='layui-input' id='pwd'>
            </div>
        </div>
        <div class='layui-form-item'>
            <label class='layui-form-label'><span style='color:red'>*</span>确认密码</label>
            <div class='layui-input-block'>
                <input type='password' lay-verify='title' autocomplete='off' placeholder='不超过20位'
                       class='layui-input' id='repwd'>
            </div>
        </div>

        <button type="button" class='layui-btn layui-btn-primary' style='float: right;' onclick='updToggle()'>取消</button>
        <button type="button" class='layui-btn layui-btn-normal' style='float: right;margin-right: 10px' onclick='editPwd()'>保存</button>
    </div>
</div>
<!-- 背景变黑 id 与js代码里面的id相同-->
<div class="layui-layer-shade" id="layui-layer-shade1" times="1" style="z-index: 999;display: none; background-color: rgb(0, 0, 0); opacity: 0.3;"></div>

<script>
    //JavaScript代码区域
    //layui的背景变黑js
    layui.use('element', function(){
        var element = layui.element;
    });
    //layui弹出框js
    function updToggle() {
        $("#update").fadeToggle("slow")
        $("#layui-layer-shade1").fadeToggle()
    }
</script>
</body>
</html>